/*
 * multinew.cpp
 *
 *  Created on: Aug 3, 2010
 *      Author: nintang
 */

#include "multinew.h"

multinew::multinew(QWidget *parent)
    : QWidget(parent)
{
	QPalette pal;
	pal.setBrush(QPalette::Background, QBrush(QPixmap(":/images/1.jpg")));
	this->setPalette(pal);
	this->setStyleSheet("QLabel{font:bold 18px;color:rgb(8,90,94);}"
			"QTextEdit{font:bold 18px;color:rgb(8,90,94);border-width: 1px; border-style: solid; border-color: rgb(190,200,200);border-radius:2px; background-color: rgb(240, 255, 255);}"
			"QDateEdit{font:bold 17px;color:rgb(8,90,94);background-color: rgb(240, 255, 255);border-width: 1px;border-color: rgb(190,200,200);}"
			"QPushButton#pbRadio {border-image: url(:/images/7.png);border:0px;}"
			"QPushButton#pbRadio:pressed {border-image: url(:/images/8.png);border:0px;}");
	QWidget *widget1=new QWidget(this);
	widget1->setGeometry(QRect(0,0, 360, 580));
	widget1->setStyleSheet("background-image: url(:/images/9.png);");
	QLabel *labelMultiNew=new QLabel(this);
	labelMultiNew->setGeometry(QRect(10,10, 128, 49));
	labelMultiNew->setStyleSheet("background-image: url(:/images/10.png);");	
	QLabel *labelDate=new QLabel(QApplication::translate("multinew", "\346\227\245\346\234\237\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelDate->setGeometry(QRect(10,70, 50, 25));
	QDateEdit *dateEdit = new QDateEdit(this);
    dateEdit->setGeometry(QRect(65, 67, 160, 28));
    //dateEdit->setDateTime(QDateTime(QDate(2000, 1, 1), QTime(0, 0, 0)));
    dateEdit->setTimeSpec(Qt::LocalTime);
    dateEdit->setDisplayFormat("yyyy/M/d");
	QLabel *labelContent=new QLabel(QApplication::translate("multinew", "\345\206\205\345\256\271\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelContent->setGeometry(QRect(10,110, 50, 30));
	QTextEdit *textEdit = new QTextEdit(this);
    textEdit->setGeometry(QRect(15, 150, 260, 260));
    textEdit->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    QPushButton *pushButtonRadio=new QPushButton(this);
	pushButtonRadio->setGeometry(QRect(215,8, 63, 67));
	pushButtonRadio->setFocusPolicy(Qt::NoFocus);
	pushButtonRadio->setObjectName("pbRadio");
	QPushButton *pushButtonImage=new QPushButton(this);
	pushButtonImage->setGeometry(QRect(300,5, 50, 85));
	pushButtonImage->setFocusPolicy(Qt::NoFocus);
	pushButtonImage->setStyleSheet("border-image: url(:/images/6.png);border:0px;");
	QPushButton *pushButtonVideo=new QPushButton(this);
	pushButtonVideo->setGeometry(QRect(285,105, 74, 56));
	pushButtonVideo->setFocusPolicy(Qt::NoFocus);
	pushButtonVideo->setStyleSheet("border-image: url(:/images/8.png);border:0px;");	
	QPushButton *pushButtonRight=new QPushButton(this);
	pushButtonRight->setGeometry(QRect(0, 580, 180, 60));	
	pushButtonRight->setStyleSheet("border-image:url(:/images/56.png);border:0px;");
	QPushButton *pushButtonLeft=new QPushButton(this);
	pushButtonLeft->setGeometry(QRect(180, 580, 180, 60));
	pushButtonLeft->setStyleSheet("border-image:url(:/images/57.png);border:0px;");
	connect(pushButtonRadio, SIGNAL(clicked()), this, SLOT(backtobloghomepage()));				
}

multinew::~multinew()
{

}
void multinew::backtobloghomepage()
{
	bloghomepage *w=new bloghomepage(0,0);
    w->showFullScreen(); 
    this->~multinew();
}

